//
//  StarLivingListCell.m
//  LiveStar
//
//  Created by 漪珊 on 2016/12/11.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "StarLivingListCell.h"
#import "LiveListModel.h"
#import "VideoListModel.h"

@implementation StarLivingListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.paperTip.hidden = YES;
    self.paperTipText.hidden = YES;
    self.presentTip.hidden = YES;
    self.presentTipText.hidden = YES;
    self.backImgHeight.constant = (kSCREEN_WIDTH - 40)/2;
    self.livingStatus.layer.cornerRadius = 3;
    self.livingStatus.clipsToBounds = YES;
}

- (void)setLivelistModel:(LiveListModel *)livelistModel {
    _livelistModel = livelistModel;
    self.starName.text = livelistModel.s_name;
    self.audiences.text = [NSString stringWithFormat:@"%@",KString(livelistModel.l_click)];
    [self.bkImage sd_setImageWithURL:[NSURL URLWithString:livelistModel.s_image] placeholderImage:kPLACE_MID];
//    NSArray *timeArr = [livelistModel.l_createtime componentsSeparatedByString:@":"];
    self.livingStatus.text = @" 直播中 ";
    
}

- (void)setVideolistModel:(VideoListModel *)videolistModel {
    _videolistModel = videolistModel;
    self.starName.text = videolistModel.s_name;
    self.audiences.text = [NSString stringWithFormat:@"%@",KString(videolistModel.l_click)];
    [self.bkImage sd_setImageWithURL:[NSURL URLWithString:videolistModel.s_image] placeholderImage:kPLACE_MID];
    self.livingStatus.text = @" 回放 ";
}

//观看直播
- (IBAction)watchLive:(id)sender {
}

@end
